package com.jack006.article;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @Classname ArticleApplication
 * @Description 启动类
 * @Date 2021-06-10 08:23
 * @Created by jack
 */
@SpringBootApplication
@MapperScan(basePackages = "com.jack006.article.mapper")
@ComponentScan(basePackages = {"com.jack006","org.n3r.idworker"})
@EnableEurekaClient
@EnableFeignClients({"com.jack006"})
// @RibbonClient(name = "service-user",configuration = MyRule.class)
@EnableHystrix
public class ArticleApplication {

    public static void main(String[] args) {
        SpringApplication.run(ArticleApplication.class,args);
    }
}
